Okay, so there are five pirates, and they have 100 gold coins that they want to share. These pirates have a very special way of deciding who gets how much gold, and it's a little bit tricky.
Pirate 1 is the oldest and the most senior. He gets to propose how the gold should be shared among all the pirates.
All the pirates, including Pirate 1, will vote on Pirate 1's proposal. If more than half of them agree with the plan, then they will split the gold that way.
But here's the twist! If less than half of the pirates agree with Pirate 1's plan, Pirate 1 gets thrown overboard and is out of the picture! Oh no!
Now, the important part is how Pirate 1 decides to share the gold. You see, Pirate 1 wants to get as much gold as possible, but he also wants to stay alive. So, let's figure out what he should do.
Pirate 1 knows that if he's thrown overboard, Pirate 2 will become the most senior pirate and will make the next proposal. So, Pirate 1 needs to make sure that his proposal is good enough for at least half of the pirates to agree with him. That way, he gets to stay alive and still get some gold.
Here's what Pirate 1 can do:
This is what Pirate 1's proposal looks like:
Now, let's see why this proposal is smart:
So, Pirate 1's proposal is fair enough to get at least half of the votes because Pirate 3 and Pirate 5 will definitely agree to it since they get gold. Pirate 1 stays alive and gets the most gold. Yay!
That's how Pirate 1 can be really smart about sharing the gold and staying safe.